//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version: 1.0.3705.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
//
// This source code was auto-generated by wsdl, Version=1.0.3705.0.
//
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
///
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="WebDwarfSoap", Namespace="http://localhost")]
public class WebDwarf : System.Web.Services.Protocols.SoapHttpClientProtocol {
///
public WebDwarf() {
this.Url = "http://localhost/dwarf/WebDwarf.asmx";
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/GetAllDwarves", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet GetAllDwarves() {
object[] results = this.Invoke("GetAllDwarves", new object[0]);
return ((System.Data.DataSet)(results[0]));
}
///
public System.IAsyncResult BeginGetAllDwarves(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetAllDwarves", new object[0], callback, asyncState);
}
///
public System.Data.DataSet EndGetAllDwarves(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/GetSingleDwarves", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet GetSingleDwarves() {
object[] results = this.Invoke("GetSingleDwarves", new object[0]);
return ((System.Data.DataSet)(results[0]));
}
///
public System.IAsyncResult BeginGetSingleDwarves(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetSingleDwarves", new object[0], callback, asyncState);
}
///
public System.Data.DataSet EndGetSingleDwarves(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/GetDwarf", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet GetDwarf(int dwarf_id) {
object[] results = this.Invoke("GetDwarf", new object[] {
dwarf_id});
return ((System.Data.DataSet)(results[0]));
}
///
public System.IAsyncResult BeginGetDwarf(int dwarf_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetDwarf", new object[] {
dwarf_id}, callback, asyncState);
}
///
public System.Data.DataSet EndGetDwarf(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/AddDwarf", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int AddDwarf(string dwarf_name, int born, int home_id) {
object[] results = this.Invoke("AddDwarf", new object[] {
dwarf_name,
born,
home_id});
return ((int)(results[0]));
}
///
public System.IAsyncResult BeginAddDwarf(string dwarf_name, int born, int home_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("AddDwarf", new object[] {
dwarf_name,
born,
home_id}, callback, asyncState);
}
///
public int EndAddDwarf(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((int)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/UpdateDwarf", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string UpdateDwarf(int dwarf_id, string dwarf_name, int born, int home_id) {
object[] results = this.Invoke("UpdateDwarf", new object[] {
dwarf_id,
dwarf_name,
born,
home_id});
return ((string)(results[0]));
}
///
public System.IAsyncResult BeginUpdateDwarf(int dwarf_id, string dwarf_name, int born, int home_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateDwarf", new object[] {
dwarf_id,
dwarf_name,
born,
home_id}, callback, asyncState);
}
///
public string EndUpdateDwarf(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/GetAllMountains", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet GetAllMountains() {
object[] results = this.Invoke("GetAllMountains", new object[0]);
return ((System.Data.DataSet)(results[0]));
}
///
public System.IAsyncResult BeginGetAllMountains(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetAllMountains", new object[0], callback, asyncState);
}
///
public System.Data.DataSet EndGetAllMountains(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/GetMountain", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet GetMountain(int mountain_id) {
object[] results = this.Invoke("GetMountain", new object[] {
mountain_id});
return ((System.Data.DataSet)(results[0]));
}
///
public System.IAsyncResult BeginGetMountain(int mountain_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetMountain", new object[] {
mountain_id}, callback, asyncState);
}
///
public System.Data.DataSet EndGetMountain(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/AddMountain", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int AddMountain(string mountain_name, string location, int king_id) {
object[] results = this.Invoke("AddMountain", new object[] {
mountain_name,
location,
king_id});
return ((int)(results[0]));
}
///
public System.IAsyncResult BeginAddMountain(string mountain_name, string location, int king_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("AddMountain", new object[] {
mountain_name,
location,
king_id}, callback, asyncState);
}
///
public int EndAddMountain(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((int)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/UpdateMountain", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string UpdateMountain(int mountain_id, string mountain_name, string location, int king_id) {
object[] results = this.Invoke("UpdateMountain", new object[] {
mountain_id,
mountain_name,
location,
king_id});
return ((string)(results[0]));
}
///
public System.IAsyncResult BeginUpdateMountain(int mountain_id, string mountain_name, string location, int king_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("UpdateMountain", new object[] {
mountain_id,
mountain_name,
location,
king_id}, callback, asyncState);
}
///
public string EndUpdateMountain(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/MarryDwarves", RequestNamespace="http://localhost", ResponseNamespace="http://localhost", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string MarryDwarves(int groom_id, int bride_id) {
object[] results = this.Invoke("MarryDwarves", new object[] {
groom_id,
bride_id});
return ((string)(results[0]));
}
///
public System.IAsyncResult BeginMarryDwarves(int groom_id, int bride_id, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("MarryDwarves", new object[] {
groom_id,
bride_id}, callback, asyncState);
}
///
public string EndMarryDwarves(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
}